package com.example.workrecord.service;

import com.example.workrecord.dao.AuthInfoDao;
import com.example.workrecord.dao.BaseJPA;
import com.example.workrecord.entity.AuthInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthInfoDaoService extends BaseService<AuthInfo,Long> {
    @Autowired
    private AuthInfoDao dao;
    @Override
    protected BaseJPA<AuthInfo> getDao() {
        return dao;
    }

    public AuthInfo findByCorpIdAndAppKey(String corpId, String appKey) {
        return dao.findByCorpIdAndAppKey(corpId,appKey);
    }
}
